Repository navigation
feat(studio): the left menu reads the placement table — 常用 types first, the rest in one 「高级」 fold - #37341
Conversation
… one 「高级」 fold buildStudioMenu orders each group by STUDIO_MENU_PLACEMENT and stamps each entry's tier; the four entries that are not a type are 高级; the 常用 types are always listed on a package; an empty 常用 type means the settled sweep counted none. StudioMenu draws muted group labels with no count, and folds the 高级 entries under one button remembered in the studio_menu_advanced cookie. Claude-Session: https://claude.ai/code/session_01QSeKYniqTW93usTV1hShjE Co-authored-by: Claude <noreply@anthropic.com>
… AI group; changeset Claude-Session: https://claude.ai/code/session_01QSeKYniqTW93usTV1hShjE Co-authored-by: Claude <noreply@anthropic.com>
…fold Claude-Session: https://claude.ai/code/session_01QSeKYniqTW93usTV1hShjE Co-authored-by: Claude <noreply@anthropic.com>
…d no "0" on an empty 常用 type Claude-Session: https://claude.ai/code/session_01QSeKYniqTW93usTV1hShjE Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYniqTW93usTV1hShjE Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — ACCEPT · L1 · head
|
| Carrier | Clause-② |
Metadata-protocol |
|---|---|---|
| #37201 claim 7169088969 | declared no, no arm |
declared none |
| #37211 claim 7172656271 | declared no, no arm |
declared none |
| PR body | declared no, no arm |
declared none |
| changeset | declared no, no arm |
declared none |
#37211's claim names claude/issue-37201-studio-menu-tiers, the PR's head ref; that is the Q1 A ruling as carried. No seat-side item.
Gates at head (check-runs, read directly)
- 62 runs on
ff794532. Taking the newest per name: 43 success, 15 skipped, 0 failed. l1-face reads 0 unexpected skips. The floor checks, Lint & Repo Gates and TypeScript Type Check, are bothsuccess. Test UI (16/16), Type Check UI, Lint UI, Build & E2E UI, Dogfood Regression Gate and Governed Surface Queue Guard are green. - PR-body guards: run 139447224940 (2026-11-25T19:11Z, suite 123604821218) failed. It is superseded by 139465661537 (2026-11-25T19:43Z, suite 123618930985), which is
success. - Check Changeset finished green: the re-run 139465661408 started 2026-11-25T19:43Z and completed
successat 2026-11-25T19:45Z. The earlier run 139447221820 was alsosuccess. - Check PR Size: the edit-triggered run skipped; the push run (139447222061) was
success.
Pins and ablations, re-run by the seat
- Setup. A throwaway worktree at
ff794532under the scratchpad.pnpm install --frozen-lockfile --prefer-offline --ignore-scripts, store-backed. JS-only builds (OS_SKIP_DTS=1) of@objectstack/spec,formula,clientandcore, the packages the two suites resolve. Removed afterwards. - Unmutated:
pnpm --dir ui exec vitest run …/studioMenuModel.test.ts …/StudioMenu.test.tsxgives 2 files, 45 passed (45) (23 + 22), matching the report's 45. - Ablations. Each went through
scripts/ablation-replace.mjs, which reported "ok mutation landed" (anchor 1 → 0) and "ok restored: blob == HEAD andgit diff HEADis empty".git diff --quiet HEADwas checked after each one.
| # | Mutation | Result | Dev row |
|---|---|---|---|
| X1 | a type count put back into the group label (the pre-PR Automation0 shape) |
3 failed: the muted-heading case, plus the ~org and ~all cases, which carry the #37211 assertion |
#37211 pin, not a row in the dev's table |
| X2 | advancedOpen = remembered (no self-open) |
2 failed: the bookmark to 钩子, and closing on a 高级 page | A13: 2 ✓ |
| X3 | countsAnswered: (settled) (a failed sweep counts as answered) |
1 failed: "a sweep that failed answered nothing" | A6: 1 ✓ |
| X4 | no sort by the placement table | 4 failed (order, tiers split, ~org, ~all) |
A1: 4 ✓ |
The first attempt at X1 and X3 was refused by the tool, because the replacement contained the anchor (the same trap the dev logged). Those attempts are not counted; the rows above are the re-spelled runs.
Merge, overlap, K
git merge-tree --write-tree origin/main ff794532(maina182fbe3): clean, exit 0.- feat(ui): New Package offers 「同时创建应用」 / Also create an app, ticked by default #37338 (head
97fa2d83, draft, touchesPackagesPage.tsx,PackageFormDialog.tsxand their tests): no shared code file with this PR. It shares onlystudio/en.tsandstudio/zh.ts, in different regions (engine.packages.create.*againstengine.studio.menu.*). Merge-tree is clean pairwise, and clean on top of main ⊕ feat(studio): the left menu reads the placement table — 常用 types first, the rest in one 「高级」 fold #37341.overlap-check.mjs --branch=ff794532 --base=origin/main: "VERDICT clean exit 0", with feat(ui): New Package offers 「同时创建应用」 / Also create an app, ticked by default #37338 the only open PR sharing a file. feat(studio): author context packs (ai_context) in Studio — a form, and a related-lists block scoped to each child #37315 has merged. - K = 10.
landing-k.mjscannot answer: the PR is UI-only, and no Test Core shard printed anAffected-set diff base. So K was read by hand:git rev-list --first-parent --count fbb62e1c..origin/main= 10.- Locale leg: not a display-label PR. No
translations/bundle orlocales/pack is in the diff, and no new language pack landed on main after the base. - Shared-budget leg: no
skills/**and noui/**/locales/en.tsin the diff. - Both legs are clear.
- Locale leg: not a display-label PR. No
维护者速读
Accurate. Every line matches the diff:
- the ten 常用 entries in the ruled order;
- 「高级」 closed by default at the bottom;
- group names in small grey type with no number, and an entry's grey number counting its items;
- a new empty package shows the 应用、页面、仪表盘、报表 entries;
- only order and folding change, with every address unchanged;
- a single-PR revert.
「要你做什么:无」 is right: the PR is not governed, its 902 lines are under 3,000, it is Tier S, and no contract review is owed.
Findings
No must-fix, no should-fix.
- N1 — the
typeCountacceptance note misstates the release status. The PR body saysengine.studio.menu.typeCount"ships in the released@object-ui/i18ncatalogue", but the key is in no@object-ui/i18nrelease tag: 18.6.0, the latest and the tagreleased-keys-removed.mjsreads, lacks it. It came in with feat(studio): a collapsible left menu of six groups replaces the top pillar nav #36985 (2026-11-24T17:04Z).- Keeping it is still right, because Studio 菜单(M3):左侧菜单读顺序表——分组标题变小号灰字、默认只显示常用、其余收进「高级」 #37201 is additive-only.
- The Q3 retirement card should record that this key is not a released key. Removing it then needs no released-key process.
- The seat may correct the line in the PR body.
- N2 — ⌘K gains entries. The changeset's "the ⌘K palette lists the same entries in the new order", and the 速读, which leaves ⌘K out, both understate one visible change. On a package, ⌘K now also lists the always-listed 常用 types the package holds none of, the AI group for example. The PR body's ⌘K paragraph says so. This is wording only.
- N3 — instrument: superseded runs read as failures.
pr-state.mjsreadscheck-runs?filter=latest, which keeps the newest run per name per check suite. A PR-body edit starts a new suite, so the superseded 2026-11-25T19:11Z PR-body guards failure is still counted. l1-face prints "1 failed" at a head whose newest run of every name is green. No open card covers this (searched). It is the seat's to file underfiling-gate.md, or to drop; it does not bear on this PR.
Landing
- The zone lands it: Tier S, not governed, ACCEPT at
ff794532, every check green taking the newest run per name. K = 10 < 15, so there is no main merge first. - After the merge, the zone files:
- F1–F3 (proposal §3.10, card Notes);
- the Q3 retirement card (with N1's fact).
|
repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H Landing · 2026-11-25T20:03Z · head
|
Fixes #37201
Fixes #37211
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
buildStudioMenu(studioMenuModel.ts) now reads the placement tableSTUDIO_MENU_PLACEMENT(landed in #37232):tier: 'common' | 'advanced'from its row; a type with no row isadvanced; the four non-type entries areadvanced(ruling 7151834490, ADR-0084 amendment of 2026-11-25).alwayslist is nowSTUDIO_MENU_ALWAYS_TYPES, the table's 常用 rows (it wasSTUDIO_MENU_DESIGNER_TYPES, object · flow · permission). A new package shows app, page, dashboard, report and the three AI types before it holds one.emptyonly when the diagnostics sweep has answered (settled) and counts none of it. The menu passescountsAnswered(studioMenuData.ts): settled and not failed, because a server without the sweep answers no counts, not "none of each". The palette's ownsettledis unchanged.studioMenuTiers()splits the menu into the 常用 groups and the 高级 fold's groups, each holding only its tier's entries.StudioMenu.tsxdraws it:studio-menu-group-count-GROUPis gone; nothing else's id changes.studio-menu-count-KEY).data-empty="true".aria-expanded,aria-controls→ the region) over a region holding the 高级 groups (studio-menu-advanced-group-GROUP). The region stays in the DOM withhiddenwhen closed.studio_menu_advanced=true|false(path/, 7 days, the menu collapse cookie's lifetime), apart fromstudio_menu_state.~organd~alldraw no fold: their entries are listed flat, in the table's order, under the same muted labels.⌘K: no change to the palette model. It reads
buildStudioMenu's output, so it lists the same entries in the new order and ignores the fold; on a package it now also shows the AI group, because its 常用 agent type is always listed (StudioPaletteGroups.surfaceScope-36900.test.tsxupdated on purpose).studioMenuPlacement.ts: #37232's L1 N1 carried. The## Pinsblock names the three pins (the registry, the ruled order, ADR-0084), and "the menu applies that rule when it reads this list" is now true and says where (buildStudioMenu).i18n: two keys added in
studio/{en,zh}.ts—engine.studio.menu.advanced(Advanced / 高级) andengine.studio.menu.emptyType. None removed;engine.studio.menu.typeCountis now unread (see Acceptance notes).No route, address, entry key or entry test id changes.
Tests
studioMenuModel.test.ts:64rewritten on purpose: "a package draws all six groups, an empty one included" → "a package draws a group only where it holds an entry" (with no type served, only the non-type entries' groups).studioMenuTiers(a group in a tier only where it has an entry of that tier; 平台 only in the fold); addresses and keys unchanged;STUDIO_MENU_ALWAYS_TYPES= the 常用 rows and the directory rule lists them on a package that holds none; empty = settled ∧ no item (not before settled, never on 高级, never off a package); the cookie reader.~org/~allcase now expects the table's order (permission before position).StudioMenu.test.tsx: group labels muted with no count / link; muted item count; tier-labelled groups; empty 常用 type dimmed, numberless (no "0" either), a link; not empty before the sweep answers or when it failed; a new package lists every 常用 type; the fold (closed by default,aria-expanded/aria-controls, the cookie written on click and read on remount, open by itself on a bookmark to 钩子 with no cookie written, closable there, a 常用 page leaves it closed, search ignores it); focus order toggle → search → 常用 entries → 高级 button → its entries;~org/~allflat with no fold and, for Studio 菜单:组织级(~org / ~all)下「自动化」分组标题显示 0,下面却有「组织级流程」 #37211, no count above Organization flows.StudioPaletteGroups.surfaceScope-36900.test.tsx,StudioDesignSurface.notFound-26708.test.tsx: expectations moved on purpose (the AI group in ⌘K; the 常用 groups and the fold on a listed package).ui/e2e/studio-left-menu-36899.spec.ts(Chromium, real Tailwind): the six-groups case now reads the 常用 groups; a new case lays out the fold closed, opened by a click, its cookie written and kept across a reload.Local runs (head
ff794532; the readings below name the tree each was taken on)ui:vitest run packages/app-shell/src/views/studio-design/ packages/app-shell/src/views/metadata-admin/atba3afa16less one fix: Test Files 1 failed | 1078 passed (1079), Tests 1 failed | 10757 passed | 1 skipped. The one failure wasStudioDesignSurface.notFound-26708.test.tsx"CONTROL — a listed package renders its builder" (it expected all six groups drawn on a package); fixed inba3afa16, re-run green: 2 files, 18 passed.b5b0f6ad+ the fixture fix: Test Files 6 passed (6), Tests 97 passed (97).pnpm --filter @object-ui/app-shell type-check(bothtscprograms, the test one included): exit 0 atff794532's bytes. The first run, beforeff794532, was red on the search fixture missingtier(TS2345 x4) — the reason for that commit.ui/e2e/studio-left-menu-36899.spec.ts, Chromium, with the Console web server switched off (the spec bundles and serves its own page): 4 passed.pnpm --dir ui exec vitest run scripts/: Test Files 172 passed | 2 skipped, Tests 5130 passed | 2 skipped.eslinton the 11 changed ui files: exit 0.dispatch-gates.mjs --commands): 38 derived, 38 run, every one exit 0;--ranreconciliation: "38 run, 0 NOT-MEASURED (a DERIVED zero)". Before every push:check:test-source-aliasexit 0,ui check:i18n-keysexit 0,overlap-check.mjs"VERDICT clean exit 0" (againstorigin/mainand feat(studio): author context packs (ai_context) in Studio — a form, and a related-lists block scoped to each child #37315, which shares the two studio i18n files and merges cleanly).Ablations: 17 of 17 red, each restored to the HEAD blob
Committed implementation first (
b5b0f6ad); each row mutated one anchor throughscripts/ablation-replace.mjs(anchor hit 1 → 0, blob moved, restored blob equal to HEAD,git diff HEADempty) and ranstudioMenuModel.test.ts+StudioMenu.test.tsx(45 tests; all green unmutated). The test files are resolved fromui/source by vitest, so there is nodist/leg.settled~org/~allaria-controlsA first pass of this table is not counted: three rows (A6, A12, A14) were refused by
ablation-replace.mjsbefore running (the replacement was a substring of the anchor), and A9 stayed green — no test had an empty 常用 type with a served count of 0. That pin was added (b5b0f6ad, "a sweep that counts 0 of it: still no number, never 0") and the whole table re-run.Acceptance notes
engine.studio.menu.typeCount("{count} types") has no reader after this change;check:i18n-dead-keysreports it as a candidate. It ships in the released@object-ui/i18ncatalogue, and this card's rule is additive-only, so it stays.countsAnswered(settled and the sweep did not fail) rather than the baresettled: on a failed sweepsettledis true with no counts, which would have dimmed every 常用 type.studio-menu-group-GROUPnow names the 常用 (or flat) instance of a group; the fold's instance isstudio-menu-advanced-group-GROUP.Verification
Browser walk-through on a live showcase stack — measured, not described. Own ports, torn down after: backend
examples/app-showcaseobjectstack dev --seed-admin --fresh -p 38417(built tree atb5b0f6ad,pnpm build121/121), Console fromui/source (ui/apps/console,vite --port 5197 --strictPort,DEV_PROXY_TARGETthe backend). Driven with Playwright/Chromium at 1280 px, signed in as the seeded admin; the menu was read from the DOM after the reads settled, and screenshots were checked./studio/com.example.showcase/metadata/object?package=com.example.showcase, fresh browser. Fold: aBUTTON"Advanced",aria-expanded=false,aria-controlsresolves to the region. Drawn: Data — Object 24 (current) · UI — Application 1, Page 29, Dashboard 3, Report 4 · Automation — Flow 33 · Access — Permission Set 9 · AI — AI Agent, AI Tool, AI Skill (dimmed, no number: the package holds none). Every group label muted, no group count anywhere (0studio-menu-group-count-*nodes). The 高级 groups were in the DOM and not visible.aria-expanded=true, cookiestudio_menu_advanced=true,studio_menu_statenot written. The fold shows Data — Hook 8, Mapping 1 · UI — View 36, Action 73, Dataset 4 · Automation — Job 1, Organization flows · Platform — Doc 8, Book 1, Email template 1, API 3, Datasource 1, Diagnostics · Access — Position 10, Sharing rule 2, Capability 2, Default sharing, Positions and permissions · AI — AI context 2. A reload kept it open. Closed again and searched "hook": the hook entry listed under Data, no fold drawn./studio/com.example.showcase/metadata/hook?package=com.example.showcase: the fold open, Hook 8 marked current, and nostudio_menu_advancedcookie in the jar.POST /api/v1/packages(201,com.walk.empty…), then its object list: all ten 常用 entries listed and dimmed with no number (Object, Application, Page, Dashboard, Report, Flow, Permission Set, AI Agent, AI Tool, AI Skill); the fold closed, holding only Organization flows, Diagnostics, Default sharing, Positions and permissions.~org—/studio/~org/metadata/flow?source=runtime: no fold; Automation — Organization flows (current), with no number above it (Studio 菜单:组织级(~org / ~all)下「自动化」分组标题显示 0,下面却有「组织级流程」 #37211); Access — Permission Set 19, Position 17, Sharing rule 3, Capability 13, Positions and permissions, in the table's order.~allreads the same, the catalog entry current.Two-minute check: open any package in Studio. Expect the ten Common entries, then a closed "Advanced" row; click it, reload, and it stays open.
Generated by Claude Code